package com.school.repository;

import com.school.entity.Attendance;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.LocalDate;
import java.util.List;

public interface AttendanceRepository extends JpaRepository<Attendance, Long> {
    List<Attendance> findByClassId(Long classId);
    List<Attendance> findByClassIdAndDate(Long classId, LocalDate date);
    List<Attendance> findByStudentId(String studentId);
    List<Attendance> findByDate(LocalDate date);
}
